package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter@Getter
public class CustomerLostQueryObject extends QueryObject{

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    //客户名称
    private String customer;
    //当时负责人名称
    private String chargeUser;

    public String getCustomer(){

        return StringUtils.hasLength(customer)? customer:null;
    }
    public String getChargeUser(){

        return StringUtils.hasLength(chargeUser)? chargeUser:null;
    }
}
